package com.pay.config;

import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.context.annotation.Bean;

/**
 * 数据源配置
 * @author jian.cao
 */
//@Configuration
//@AutoConfigureAfter(DSConfig.class)
public class MapperScanner {
	
	@Bean
	public MapperScannerConfigurer mapperScannerConfigurer() {
		MapperScannerConfigurer mapperScannerConfigurer = new MapperScannerConfigurer();
		mapperScannerConfigurer
				.setSqlSessionFactoryBeanName("sqlSessionFactory");
		mapperScannerConfigurer.setBasePackage("com.pay.mapper");
		return mapperScannerConfigurer;
	}

}
